import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('@/views/Home/Index')
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('@/views/User/Register')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/User/Login')
    },
    {
      path: '/oauth/callback/',
      name: 'oauth',
      component: () => import('@/views/Oauth/CallBack'),
    },
    {
      path: '/user/center/',
      name: 'user_center',
      component: () => import('@/views/User/UserCenter'),
    },
  ],
  mode:'history' /*hash, history*/
})
